package com.goods.business.service;


import com.goods.common.error.BusinessException;
import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

public interface ManageService {


    PageVO<ProductCategoryTreeNodeVO> categoryTree(Integer pageNum, Integer pageSize);

    List<ProductCategoryTreeNodeVO> getParentCategoryTree();

    void add(ProductCategory productCategory);

    ProductCategoryTreeNodeVO edit(Long id);

    void update(Long id, ProductCategoryTreeNodeVO productCategory);

    boolean delete(Long id);
}
